home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
Shout3d_runtime
/
codebase
/
models
/
animTests
/
bezier_boxes.s3d
next >
Wrap
Text File
|
2000-06-17
|
3KB
|
138 lines
Background {
color 0 0 0
}
DEF world-TIMER TimeSensor {
loop TRUE
cycleInterval 3.333
}
DEF Box01 Transform {
translation -39.25 0 99.57
children [
Transform {
translation -60.75 0 0.4343
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.6039 0.6039 0.898
}
}
]
geometry MultiMesh {
coord DEF Box01-COORD Coordinate {
point [
-15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
appearanceIndex [
1 1 0 0 4 4 3 3 5 5 2 2
]
textureMappings [
]
}
}
]
}
DEF Box01-BEZPOS-INTERP BezierVecInterpolator {
key [
0 0.5 1
]
keyValue [
-39.25 0 99.57 -59.09 0 -6.666 -59.09 0 -73.4 -39.25 0 -100.4 -39.25 0 -100.4 -19.42 0 -127.5 20.32 0 -114.9 79.83 0 -62.75
]
}
ROUTE world-TIMER.fraction_changed TO Box01-BEZPOS-INTERP.set_fraction
ROUTE Box01-BEZPOS-INTERP.value_changed TO Box01.set_translation
DEF Box01-EULER-INTERP EulerXYZInterpolator {
xInterpolator BezierScalarInterpolator {
key [
0 0.5 1
]
keyValue [
0 0 0 0 0 0 0 0
]
}
yInterpolator BezierScalarInterpolator {
key [
0 0.5 1
]
keyValue [
0 -0.7021 -1.223 -1.562 -1.562 -1.901 -2.058 -2.033
]
}
zInterpolator BezierScalarInterpolator {
key [
0 0.5 1
]
keyValue [
0 0 0 0 0 0 0 0
]
}
}
ROUTE world-TIMER.fraction_changed TO Box01-EULER-INTERP.set_fraction
ROUTE Box01-EULER-INTERP.value_changed TO Box01.set_rotation
DEF Box02 Transform {
translation 48.02 0 -45.1
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 0.3451 0.7804 0.8824
}
}
]
geometry MultiMesh {
coord DEF Box02-COORD Coordinate {
point [
-15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
]
}
coordIndex [
0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
2 0 4 -1 4 6 2 -1
]
smoothingIndex [
2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
]
appearanceIndex [
1 1 0 0 4 4 3 3 5 5 2 2
]
textureMappings [
]
}
}
]
}
]
}
DEF Camera01 Viewpoint{
position 2.983 113.4 362.3
orientation 0.9614 -0.2725 -0.03926 -0.2975
fieldOfView 0.6024
description "Camera01"
}
DEF Camera01.Target Transform {
translation -28.44 0 -21.85
children [
DEF Camera01.Target-BEZPOS-INTERP BezierVecInterpolator {
key [
0 0.07
]
keyValue [
-28.44 0 -21.85 -28.44 0 -21.85 -28.44 0 -21.85 -28.44 0 -21.85
]
}
ROUTE world-TIMER.fraction_changed TO Camera01.Target-BEZPOS-INTERP.set_fraction
ROUTE Camera01.Target-BEZPOS-INTERP.value_changed TO Camera01.Target.set_translation
]
}